package com.shuimin.service;

import com.shuimin.service.service.sys.UserService;
import pond.web.Controller;
import pond.web.Render;
import pond.web.Request;
import pond.web.Response;
import pond.web.http.HttpMethod;

/**
 * Created by ed on 1/17/16.
 */
public class BRIEF extends Controller {

  /**
   * 用户列表页视图
   *
   * @param req
   * @param resp
   */
  @Mapping(value = "/users", methods = HttpMethod.GET)
  public void brief_users(Request req, Response resp) {
    resp.render(Render.json(
        App.DB.get(UserService::brief)));
  }


}
